import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
/*
 * 实体类
 * 创建数据库
 * 表 user
 * 字段 id : int  firstName:varchar  lastName:varchar  isActive:tinyint  -128 128
 * */
@Entity()
export class User {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  firstName: string;

  @Column()
  lastName: string;

  @Column({ default: true })
  isActive: boolean;
}
